package com.jinzhi.jzweb.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.utils.Result;
import com.jinzhi.jzapi.domain.UserDO;
import com.jinzhi.jzweb.domain.JazGroupActivityDO;
import com.jinzhi.common.base.CoreService;
import com.jinzhi.jzweb.domain.vo.JazGroupActivityVo;

import java.util.List;

/**
 * 
 * <pre>
 * 团购活动拼团表
 * </pre>
 * <small> 2024-05-11 13:54:15 | Long</small>
 */
public interface JazGroupActivityService extends CoreService<JazGroupActivityDO> {


    /**
     * 根据用户id，拼团商品id，获取到他参与的团
     */
    Long getGroupActivityIdByUserIdGropProdId(Long userId,Long groupProdId);


    /**
     * 根据拼团表id查询拼团的用户并根据拼团顺序排序
     */
    List<UserDO> getUserByActivityId(Long activityId);


    Result<Page<JazGroupActivityDO>> selGroupActivityList(String name, String mobile, int current, int size, String createTime, String endTime);

    JazGroupActivityVo getInfo(Long id);
}
